<html xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui" >  

    <!--    <h:body>-->
    <ui:composition template="layout.xhtml">-->

        <ui:define name="corpo">
            <h:form id="incluir_selo" acceptcharset="utf-8"> 
                <p:panel header="Cadastrar Selo">

                      <p:messages id="msg"/>

                    <fieldset>
                        <legend>Dados do Selo</legend>
                        <p:colorPicker id="popupCP"  widgetVar="picker"/>  
                        <h:panelGrid columns="2"  border="0" styleClass="textAlignRight" columnClasses="textAlignRight"> 
                            <h:outputLabel value="Numeração Primeira: "/>
                            <p:inputText value="#{managerSelo.num1}"
                                         id="num1"
                                         required="true"  
                                         requiredMessage="O campo numeração deve ser preenchido "/>
                            <h:outputLabel value="Numeração Última: "/>
                            <p:inputText value="#{managerSelo.num2}"
                                         id="num2"
                                         required="true"  
                                         requiredMessage="O campo numeração deve ser preenchido "/>
                            <h:outputLabel value=" Cor: "/>  
<!--                            <p:selectOneRadio id="selo" value="{managerSelo.selo.tipoSelo}"  
                                              label="Cor" required="true" requiredMessage="A opção Cor deve ser selecionada">  
                                              <f:selectItems value="{managerSelo.selectTipoSelo()}"/>                     
                            </p:selectOneRadio>-->
                        </h:panelGrid>
                    </fieldset>
                </p:panel>
                <br/>
                <center>
                    <p:commandButton id="submit" actionListener="#{managerSelo.salvar()}" icon="ui-icon-disk" value="SALVAR" update="@form, num1, num2"/>
                </center>

              
            </h:form>
        </ui:define>
    </ui:composition>



</html>

